#ifndef THREADCLASS_H
#define THREADCLASS_H

#include <QObject>
#include <QEventLoop>

class ThreadClass : public QObject {
    Q_OBJECT
    QEventLoop loop = QEventLoop(this);

public:
    explicit ThreadClass(QObject *parent = nullptr);

signals:
    void start();
    void stop();

private slots:
    void onStart();
};

#endif // THREADCLASS_H
